home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / gem / l_0799 / 518 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.4 KB

  1. From: P.B.Schuller@twi.tudelft.nl (Bart Schuller)
  2. Subject: Re: supplementary groups question...
  3. Date: Thu, 23 Jun 1994 13:15:33 +0200 (EET DST)
  4. In-Reply-To: <9406230910.AB17558@gimpel.techfak.uni-bielefeld.de> from "Torsten Scherer" at Jun 23, 94 09:59:34 am
  5.  
  6. [....]
  7. >  Besides that: The current code of denyaccess() says something like:
  8. > mode = xattr->mode;
  9. > if (curproc->euid == xattr->uid)
  10. >     perm = perm << 6;
  11. > else if (curproc->egid == xattr->gid)
  12. >     perm = perm << 3;
  13. > if ((mode & perm) != perm) return 1;    /* access denied */
  14. > return 0;
  15. >  which I think is an error, because if both my euid and egid would match the
  16. > ids of the file, but the uid would give me less access rights than the gid
  17. > for some mysterious reasons, I'll not be granted access to this file. I think
  18. > [....]
  19. >  Any comments about this? :-)
  20.  
  21. Yes: please don't change this behaviour, it's supposed to work this way.
  22. It even has some advantages: you now have a very simple way to restrict
  23. access to some files for a specific group; make the permissions rwx---r-x
  24. and everyone in the same group as the file wil be denied access to it.
  25. > ciao,
  26. > TeSche
  27.  
  28. Bart.
  29. -- 
  30.   /                           Bart Schuller                            \
  31.  /P.B.Schuller@TWI.TUDelft.NL               webmaster@www.twi.tudelft.nl\
  32. <a href=http://www.twi.tudelft.nl/People/P.B.Schuller.html>My WWW page</a>
  33.  \       Insert your favourite witty saying here, I can't choose!       /
  34.